package com.lizemin.beanfactorypostprocessor.config;

import com.lizemin.beanfactorypostprocessor.entity.Dog;
import com.lizemin.beanfactorypostprocessor.entity.Phone;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lzm
 * @date 2025/9/27 10:59
 * @description
 */
@Configuration
public class BeanConfig {

    @Bean
    public Dog dog() {
        Dog dog = new Dog();
        dog.setName("小白");
        dog.setColor("白色");
        return dog;
    }

    @Bean
    public Phone phone() {
        Phone phone = new Phone();
        phone.setBrand("苹果");
        phone.setPrice(5000);
        return phone;
    }


}
